package com.ssy.lingxi.member.merchant.model.vo.maintenance.request;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 会员组织架构操作接口参数VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-28
 */
public class MemberOrganizationAddVO implements Serializable {
    private static final long serialVersionUID = -2749259906653932494L;

    @NotNull(message = "父节点id要大于等于0")
    @PositiveOrZero(message = "父节点id要大于等于0")
    private Long parentId;

    /**
     * 组织机构名称
     */
    @NotBlank(message = "组织机构名称不能为空")
    @Size(max = 40, message = "组织机构名称最多40个字符")
    private String title;

    /**
     *  机构代码
     */
    @Size(max = 12, message = "机构代码最长12个字符")
    private String code;

    /**
     * 描述
     */
    @Size(max = 64, message = "机构描述最长64个字符")
    private String remark;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
